﻿using Mengsk.ProxyDelivery.Domain;
using Mengsk.ProxyDelivery.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mengsk.ProxyDelivery.Print.Domain.PrintDataFormatters
{
    class PrintDataFormatterOrder_Pop : PrintDataFormatter
    {
        public override PrintTemplateItemTypes AcceptType
        {
            get { return PrintTemplateItemTypes.ORDER_POP; }
        }

        public override object Format(PrintTemplate template, PrintTemplateItem item, Order order)
        {
            var type = order.PopType;

            if (type == PopType.None)
            {
                return "";
            }

            return EnumUtil.GetEnumValueDescription(type);
        }
    }
}
